package me.sdevil507.org.mapper;

import me.sdevil507.org.dto.OrgExpertInfoParamsDto;
import me.sdevil507.org.dto.OrgExpertInfoResultDto;
import me.sdevil507.org.po.OrgExpertInfoPo;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.springframework.stereotype.Component;

/**
 * 专家信息转换mapper
 *
 * @author sdevil507
 * created on 2020/8/7
 */
@Component
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface OrgExpertInfoMapper {

    /**
     * po => dto
     *
     * @param po 实体类
     * @return dto传输类
     */
    OrgExpertInfoResultDto po2dto(OrgExpertInfoPo po);

    /**
     * dto=>po
     *
     * @param dto 入参dto
     * @return po
     */
    OrgExpertInfoPo dto2po(OrgExpertInfoParamsDto dto);
}
